//
//  AppDelegate.swift
//  Sinaweibo
//
//  Created by 李伟 on 16/2/16.
//  Copyright © 2016年 一苇渡江. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 实例化window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()
        
        // 设置为主窗口并可见
        window?.makeKeyAndVisible()
        
        // 为主窗口设置根控制器
        window?.rootViewController = MainViewController()
        
        return true
    }

    
}

